package bio.duplexing;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    public static void main(String[] args) throws IOException {
        try (ServerSocket serverSocket = new ServerSocket(8888)) {
            while (true) {
                Socket socket = serverSocket.accept();
                Common.printInContent(socket.getInputStream());
                Common.printOutContent(socket.getOutputStream());
            }
        }
    }
}
